<?php
/**
 * ===============================================
 * 版权所有 2019-2050 青岛铁锤科技有限公司，并保留所有权利。
 * 网站地址: http://www.huaxianling.com
 * ===============================================
 * Author: Happy dong
 * Created Time: 2019-11-22 17:23
 *
 * Version: 2.0
 */

namespace App\Modules\Coupon\Validators;


use Flower\Core\Repository\Contracts\ValidatorInterface;
use Flower\Core\Repository\Validator\LaravelValidator;

class CouponValidator extends LaravelValidator
{
	 protected $rules = [
		 ValidatorInterface::RULE_CREATE => [
	//			'order_no' => 'sometimes|required|unique:order',
	//			'store_id' => 'sometimes|required',
	//			'barber_id' => 'sometimes|required',
	//			'member_id' => 'sometimes|required',
	//			'appointment_time' => 'sometimes|required',
		]
	];
	protected $messages = [
	//		'order_no.required' => '订单号不能为空',
	//		'order_no.unique' => '订单号重复，请重新提交！',
	//		'store_id.required' => '订单号不能为空',
	//		'barber_id.required' => '订单号不能为空',
	//		'member_id.required' => '用户不能为空',
	//		'appointment_time' => '预约时间不能为空',
	//		'appointment_time.required' => '预约时间不能为空！',
	];
}